/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.service;

import com.qdu.entity.Book;
import com.qdu.entity.Favorites;
import com.qdu.entity.Movie;
import java.util.List;

/**
 *
 * @author Ice
 */
public interface FavoritesService {

    int addToFavorites(Favorites f);    //将一个电影或图书加入收藏夹

    int deleteFromFavorites(Favorites f);   //将一个电影或图书从收藏夹中删除

    List<Book> findBookList(int id);     //根据用户编号获取图书收藏列表

    List<Movie> findMovieList(int id);     //根据用户编号获取电影收藏列表
}
